package com.shunde.xunjian.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.sql.Timestamp;

/**
 * @author shantaoke
 * @description complaint_registration
 * @date 2023-07-12
 */
@Data
public class ComplaintRegistration implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    /**
     * complaint_id
     */
    private Integer complaintId;

    /**
     * complaint_source
     */
    private String complaintSource;

    /**
     * complaint_problem
     */
    private String complaintProblem;

    /**
     * problem_description
     */
    private String problemDescription;

    /**
     * area
     */
    private String area;

    /**
     * town_street
     */
    private String townStreet;

    /**
     * address
     */
    private String address;

    /**
     * complainant_name
     */
    private String complainantName;

    /**
     * complainant_gender
     */
    private String complainantGender;

    /**
     * complainant_phone
     */
    private String complainantPhone;

    /**
     * complainant_address
     */
    private String complainantAddress;

    /**
     * urgency_level
     */
    private String urgencyLevel;

    /**
     * scene_picture
     */
    private String scenePicture;

    /**
     * complaint_time
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Timestamp complaintTime;

    /**
     * acceptance_time
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Timestamp acceptanceTime;

    /**
     * scene_review_deadline
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Timestamp sceneReviewDeadline;

    /**
     * review_status
     */
    private String reviewStatus;

    /**
     * entry_person
     */
    private String entryPerson;

    /**
     * entry_time
     */
    private Timestamp entryTime;

    /**
     * dispatch_person
     */
    private String dispatchPerson;

    /**
     * dispatch_time
     */
    private Timestamp dispatchTime;

    /**
     * complaints_checker
     */
    private String complaintsChecker;

    /**
     * review_complete_time
     */
    private Timestamp reviewCompleteTime;

    /**
     * sTime
     */
    @TableField(exist = false)
    private String sTime;

    /**
     * eTime
     */
    @TableField(exist = false)
    private String eTime;

}
